const isObject = (o: unknown) => {
  return Object.prototype.toString.call(o) === '[object Object]'
}

const sleep = (ms: number) => {
  return Promise.resolve((resolve: () => void) => {
    setTimeout(() => {
      resolve()
    }, ms)
  })
}

export { isObject, sleep }
